package com.da.javatest.design.schema.visitor;

public abstract class Person {
    private String name;
    //提供一个方法，让访问者可以访问
    public abstract void accept(Action action);

    Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
}
